package com.elysia.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.elysia.common.utils.PageUtils;
import com.elysia.gulimall.product.entity.ProductAttrValueEntity;
import com.elysia.gulimall.product.vo.BaseAttr;

import java.util.List;
import java.util.Map;

/**
 * spu属性值
 *
 * @author lixinli
 * @email 1994883492@qq.com
 * @date 2024-09-28 22:51:16
 */
public interface ProductAttrValueService extends IService<ProductAttrValueEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveSpuBaseAttrs(Long id, List<BaseAttr> baseAttrs);

    List<ProductAttrValueEntity> baseAttrListForSpu(Long spuId);

    void updateSpuBaseAttrValue(List<ProductAttrValueEntity> attrValues, Long spuId);
}

